package com.p2p.noc.Demo.animal;
public class Demo {
    public static void main(String[] args) {
        Cat a = new Cat();
        a.setName("招财");
        a.setAge(2);
        System.out.println("小猫咪");
        System.out.println("名字:"+a.getName()+"\t\t"+"年龄:"+a.getAge());
        a.Role();

        Dog d = new Dog();
        d.setName("旺财");
        d.setAge(1);
        System.out.println("小奶狗");
        System.out.println("名字:"+d.getName()+"\t\t"+"年龄:"+d.getAge());
        d.Role();
    }
}
